@extends('layouts.homebase')
@section('tdk')
<title>{{$tdk['title']}}</title>
<meta name="keywords" content="{{$tdk['keywords']}}" />
<meta name="description" content="{{$tdk['description']}}" />
@endsection
@section('css')
@parent
<link rel="stylesheet" type="text/css" href="">
@endsection
@section('content')

<main>
  <div class="lbox">
    <div class="weizhi">您现在的位置是：<a href="{{request()->schemeAndHttpHost()}}" class="classlinkclass">首页</a> > 
	@if($catspy!=0) <a href="/{{ $keyboard }}/" class="classlinkclass">{{ $catspy['catname'] }}</a> @else 暂时没有该分类 @endif
	</div>
	<div class="pics"> 
		<ul>
		  <h2>@if($catspy!=0) {{ $catspy['catname'] }} @else 暂时没有该分类，为你随机其他分类数据！ @endif</h2>
		  @foreach($cates as $date)
		  <li style="width: 50%;"><a href="/detail/{{$date['art_id']}}.html" target="_blank"><p>{{$date['title']}}</p></a></li>
		  @endforeach
		</ul>
		<style>.flex{text-align: center !important;}</style>
		{{ $cates->links() }}	
    </div>
  </div>
  <aside class="rbox">
    <div class="ad">
		<a href="/" target="_blank">
		<img src="" alt="广告位">
		</a>
	</div>
    <div class="hot_news">
      <p class="h_title">文章热榜</p>
      <ul>
	  	@foreach($hotarts as $art)
		<li><a href="/detail/{{$art['art_id']}}.html" title="{{$art['title']}}" target="_blank">{{$art['title']}}</a></li>
		@endforeach	
	</ul>
    </div>
  </aside>
</main>

@endsection
@section('js')
@parent
<script></script> 
@endsection







